package com.yaohuan;

import javax.servlet.*;
import java.io.IOException;

/**
 * @author YaoHuan
 * @ClassName Demo1Filter
 * @Description TODO
 * @Date 2023/4/18 22:10
 */
public class Demo1Filter implements Filter {
    @Override
    public void init(FilterConfig filterConfig) throws ServletException {

    }

    @Override
    public void doFilter(ServletRequest request, ServletResponse response, FilterChain chain) throws IOException, ServletException {
        System.out.println("demo1过滤器进来了");
        chain.doFilter(request,response);
        System.out.println("demo1过滤器回来了");
    }

    @Override
    public void destroy() {

    }
}
